-
Notifications
You must be signed in to change notification settings - Fork 55
RHIDP-9105: Best practices when creating a workflow #1424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RHIDP-9105: Best practices when creating a workflow #1424
Conversation
|
Updated preview: https://redhat-developer.github.io/red-hat-developers-documentation-rhdh/pr-1424/ @ 11/05/25 13:29:14 |
20c1a10 to
4eb2027
Compare
8fef9a3 to
5742ac3
Compare
gabriel-farache
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are mentions of input.from, output.as, export.as but I do not understand their usage: there is the dataInputSchema field in the workflow which defines the input parameters the workflow needs, then the inputted arguments are accessible with the same names defined in the input schema.
Is the advised best practice to have a root field names input and then the actual inputs?
Same for output.as but for new data?
Which would mean the exports.as correspond the the new value of an already set field/key?
And what do you mean by "runtime expression "? Are those already defined in the workflow and any user may use it? I do not think there is such think in 0.8 version of the spec, does it come from 1.0 spec?
modules/orchestrator/ref-best-practices-for-creating-workflows.adoc
Outdated
Show resolved
Hide resolved
|
I think you used 1.0 spec to generate this doc; in https://serverlessworkflow.io/schemas/1.0.0/workflow.json there is which matches what is written here but does not exist in 0.8 AFAIK |
modules/orchestrator/ref-best-practices-for-creating-workflows.adoc
Outdated
Show resolved
Hide resolved
@gabriel-farache, here you will find the information on the Runtime Expression: https://github.com/serverlessworkflow/specification/blob/main/dsl.md#runtime-expressions, where the various arguments for each runtime expression ( |
@jmagak the link relates to 1.0 specification whereas the sontaflow/Openshift Serverless Logic used 0.8 spec: https://github.com/serverlessworkflow/specification/blob/0.8.x/specification.md |
The team is working on 1.0 implementation but the delivery date it is not clear yet. Let's link to 0.8 for now and we can update as soon as 1.0 is implemented. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see references to 1.0 spec that do not exist in 0.8, could you check?
modules/orchestrator/ref-best-practices-for-creating-workflows.adoc
Outdated
Show resolved
Hide resolved
modules/orchestrator/ref-best-practices-for-creating-workflows.adoc
Outdated
Show resolved
Hide resolved
modules/orchestrator/ref-best-practices-for-creating-workflows.adoc
Outdated
Show resolved
Hide resolved
modules/orchestrator/ref-best-practices-for-creating-workflows.adoc
Outdated
Show resolved
Hide resolved
modules/orchestrator/ref-best-practices-for-creating-workflows.adoc
Outdated
Show resolved
Hide resolved
pabel-rh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor comments.
modules/orchestrator/ref-best-practices-for-creating-workflows.adoc
Outdated
Show resolved
Hide resolved
modules/orchestrator/ref-best-practices-for-creating-workflows.adoc
Outdated
Show resolved
Hide resolved
modules/orchestrator/ref-best-practices-for-creating-workflows.adoc
Outdated
Show resolved
Hide resolved
modules/orchestrator/ref-best-practices-for-creating-workflows.adoc
Outdated
Show resolved
Hide resolved
|
/cherry-pick release-1.8 |
|
@jmagak: once the present PR merges, I will cherry-pick it on top of In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/cherry-pick release-1.7 |
|
@jmagak: once the present PR merges, I will cherry-pick it on top of In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
@jmagak: #1424 failed to apply on top of branch "release-1.8": In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
@jmagak: #1424 failed to apply on top of branch "release-1.7": In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
…#1424) * Update the best practices * Update the best practices * Update the best practices * Apply suggestions * Apply new suggestions * Apply new suggestions * Apply new suggestions * Update new suggestions --------- Co-authored-by: GitHub Actions <[email protected]> Co-authored-by: Gerry-Forde <[email protected]>
…#1424) * Update the best practices * Update the best practices * Update the best practices * Apply suggestions * Apply new suggestions * Apply new suggestions * Apply new suggestions * Update new suggestions --------- Co-authored-by: GitHub Actions <[email protected]> Co-authored-by: Gerry-Forde <[email protected]>
* Update the best practices * Update the best practices * Update the best practices * Apply suggestions * Apply new suggestions * Apply new suggestions * Apply new suggestions * Update new suggestions --------- Co-authored-by: GitHub Actions <[email protected]> Co-authored-by: Gerry-Forde <[email protected]>
* Update the best practices * Update the best practices * Update the best practices * Apply suggestions * Apply new suggestions * Apply new suggestions * Apply new suggestions * Update new suggestions --------- Co-authored-by: GitHub Actions <[email protected]> Co-authored-by: Gerry-Forde <[email protected]>
IMPORTANT: Do Not Merge - To be merged by Docs Team Only
Version(s): 1.7, main
Issue: RHIDP-9105
Preview:
1.5. Best practices when creating a workflow